package golang

import "fmt"

type Person1 struct {
	name string
	age  int
}

type Teacher struct {
	Person1 //组合
	title   string
}

func main() {
	t1 := Teacher{
		Person1{"小明", 18},
		"语文",
	}

	fmt.Println(t1)
}
